package StateManagementIRPConstDefs;
/**
 * Generated from IDL enum "AlarmStatus".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class AlarmStatus
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _CLEARED = 0;
	public static final AlarmStatus CLEARED = new AlarmStatus(_CLEARED);
	public static final int _INDETERMINATE = 1;
	public static final AlarmStatus INDETERMINATE = new AlarmStatus(_INDETERMINATE);
	public static final int _WARNING = 2;
	public static final AlarmStatus WARNING = new AlarmStatus(_WARNING);
	public static final int _MINOR = 3;
	public static final AlarmStatus MINOR = new AlarmStatus(_MINOR);
	public static final int _MAJOR = 4;
	public static final AlarmStatus MAJOR = new AlarmStatus(_MAJOR);
	public static final int _CRITICAL = 5;
	public static final AlarmStatus CRITICAL = new AlarmStatus(_CRITICAL);
	public int value()
	{
		return value;
	}
	public static AlarmStatus from_int(int value)
	{
		switch (value) {
			case _CLEARED: return CLEARED;
			case _INDETERMINATE: return INDETERMINATE;
			case _WARNING: return WARNING;
			case _MINOR: return MINOR;
			case _MAJOR: return MAJOR;
			case _CRITICAL: return CRITICAL;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _CLEARED: return "CLEARED";
			case _INDETERMINATE: return "INDETERMINATE";
			case _WARNING: return "WARNING";
			case _MINOR: return "MINOR";
			case _MAJOR: return "MAJOR";
			case _CRITICAL: return "CRITICAL";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected AlarmStatus(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
